{#include file="top.php"#}
<div class="body">
    <div class="main">
        <div class="search_box">
            <!--<form id='form1' name='form1' action="{#optimize_url('search', 'product')#}" method='get'>-->
            <span class="title">搜尋</span>
            <div class="box">
                <input type="text" id='find' name='find'  value="{#if empty($find)#}keyword{#else#}{#$find#}{#/if#}" onfocus="find_onfocus(this);" onblur="find_onblur(this);" onkeyup="lookup(this.value,1);"/>
            </div>
            <a href="javascript:void(0);" class="b" onclick="window.location.href='/search-product/'+$('#find').val()"><strong>搜尋</strong></a>
            <div id="autoSuggestionsList" style="width: 558px;"></div>
            <!--</form>-->
        </div>
        <div class="tab_b_box">
            <a href="{#optimize_url('search', 'product','find='|cat:$find)#}"  class="curr">產品</a>
            <a href="{#optimize_url('search', 'event','find='|cat:$find)#}" >活動事件</a>
            <a href="{#optimize_url('search', 'member','find='|cat:$find)#}">會員</a>
            <em class="line"></em>
            <span class="info">共有{#intval($data.pageinfo.total)#}個{#if $find#} “{#$find#}” {#/if#}商品搜尋結果</span>
        </div>
        <div class="result_box">
            <ul class="invite_list v_list">
                {#foreach  from=$data.result item=v key=k#}
                <li class="b_list {#if ((($k+1)%4) eq 0) || (($k+1) eq count($data.result))#}last{#/if#} {#if ($k+1) > 8#}no_b_list{#/if#}" >
                    {#if $v.member_type eq 5#}<h3 class="y_title">尊業體驗團</h3>{#else#}<h3 class="g_title">試用專區</h3>{#/if#}
                    <div class="dashed_r">
						<div class="img_box"><p class="img_p"><a href="{#$v._bt_url#}"><span><img src="{#$v._photo_url#}" alt="{#$v.name#}"></span></a></p></div>
                        <a class="btn_b {#$v._css#}" href="{#$v._bt_url#}"><strong>{#$v._bt#}</strong></a>
                        <h4 class="product_brand"><a class="product_brand" href="/search-product/{#trim($v.type_name)#}">{#$v.type_name#}</a></h4>
                        <p class="product_title"><a href="{#$v._bt_url#}">
                                {#wordscut($v.name,20)#}
                                <br>
                                {#wordscut($v.cname,20)#}</a>
                        </p>
                    </div>
                </li>
                {#/foreach#}


            </ul>
        </div>
        {#$pagelist#}
    </div>
    <!-- main-->
    <div class="sidebar">

        {#show_block('b2',1,'','sidebar_ad')#}
        {#show_block('b1',2,'','sidebar_function')#}
        {#show_block('b4',0,'','sidebar_workshop')#}
        {#show_block('b11',0,'','sidebar_new_try sidebar_new b_box')#}
        {#show_block('b5',0,'','sidebar_top3 b_box')#}
        {#show_block('b6',0,'','sidebar_facebook')#}
    </div>
    <!-- sidebar -->

</div><!--body-->
{#include file="footer.php"#}